package surreal.triviamaster.utilities;

import surreal.triviamaster.database.LocalCache;
import android.app.Application;

public class TriviaMasterApplication extends Application {
	//Actions
	public static final String ACTION_AUTHENTICATE = "ACTION_AUTHENTICATE";
	public static final String ACTION_GET_QUESTIONS = "ACTION_GET_QUESTIONS";
	public static final String ACTION_REFRESH_CATEGORIES = "ACTION_REFRESH_CATEGORIES";
	
	public static final String ACTION_FLUSH = "ACTION_FLUSH";
	public static final String ACTION_FLUSH_QUIZ_RESULTS = "ACTION_FLUSH_QUIZ_RESULTS";
	public static final String ACTION_FLUSH_QUIZ_FLAGS = "ACTION_FLUSH_QUIZ_FLAGS";

	public static final String ACTION_INSERT_QUESTION = "ACTION_INSERT_QUESTION";	
	public static final String ACTION_EMPTY_QUESTIONS = "ACTION_EMPTY_QUESTIONS";
	
	public static final String ACTION_RECORD_QUIZ_RESULTS = "ACTION_RECORD_QUIZ_RESULTS";
	public static final String ACTION_RECORD_FLAGS = "ACTION_RECORD_FLAGS";

	//Errors
	public static final String ERROR_INVALID_CHARACTERS = "Only use these special characters ',-.()";
	public static final String NETWORK_ERROR = "No network availible";

	
	//URL addresses
	public static final String URL_PHP_ADDRESS = "http://www.surealsolutions.com/TriviaMaster/";
	
	//Point Values
	public static final int POINT_VALUE_FULL = 10;
	public static final int POINT_VALUE_HINT = 7;
	public static final int POINT_VALUE_MC = 5;
		
	public LocalCache getLocalCache() {
		return LocalCache.getDatabase(this);
	}

}